package com.isoft.student.dao;

import com.isoft.student.eo.AnswerspaperEOPage;
import com.isoft.student.model.Answerspaper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 操作数据库方法的对接
 */
@Mapper
public interface AnswerspaperMapper {

    //试卷答题添加
    int insertAnswerspaper(Answerspaper answerspaper);

    //通过答题表答题id来获取学生答题
    int getExampaperidCount(Integer exampaperid);

    //试卷答题表更新
    int updateAnswerspaper(Answerspaper answerspaper);

    //通过答题表主键试卷答题删除
    int delAnswerspaper(Integer answerid);

    //根据条件获取相关信息
    List<AnswerspaperEOPage> getAnswerspaperWhereAll(AnswerspaperEOPage answerspaperEOPage);
}
